package tech.aistar.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import tech.aistar.mapper.CommentMapper;
import tech.aistar.pojo.Comment;

import java.util.List;

@Service
@Transactional
public class CommentServiceImpl implements CommentService{
    @Autowired
    private CommentMapper commentMapper;
    @Override
    public List<Comment> findAll() {
        return commentMapper.findAll();
    }

    @Override
    public int insert(Comment comment) {
     return  commentMapper.insert(comment);
    }
}
